<%@ include file="include.jsp" %>

<c:if test='${not empty dormitory.roomList}'>
   <ul>
      <c:forEach var="room" items="${dormitory.roomList}">
         <li><b>Room ${room.number}</b>
         	<br>Total beds: ${room.totalBeds}
            <br>Beds currently available  : ${room.bedsAvailable}
            <br> Current Occupants: ${room.personList}
            <br> Floor Level : ${room.floorLevel}
            <br>
            <br>
         </li>  
                         
      </c:forEach>
          <a href="dormitory.html">return to dormitories</a>
          
   </ul>
</c:if>